import service from "../utils/request";
//登录
export function user_login(payload = {}) {
    return service.post('/api/user/login', payload)
}
//角色列表
export function role_list(payload = {}) {
    return service.get('/api/role/list', { params: { payload } })
}
//注册列表
export function user_register(payload = {}) {
    return service.post('/api/user/register', payload)
}

//出差申请查询
export function business_list(payload = {}) {
    return service.get('/api/business/list', { params: payload })
}

//出差申请添加
export function business_add(payload = {}) {
    return service.post('/api/business/add', payload)
}

//出差申请删除
export function business_delete(payload = {}) {
    return service.post('/api/business/delete', payload)
}

//外勤打卡查询
export function outside_list(payload = {}) {
    return service.get('/api/outside/list', { params: payload })
}
//外勤打卡添加
export function outside_add(payload = {}) {
    return service.post('/api/outside/add', payload)
}

//外勤打卡删除
export function outside_delete(payload = {}) {
    return service.post('/api/outside/delete', payload)
}

//请假申请查询
export function leave_list(payload = {}) {
    return service.get('/api/leave/list', { params: payload })
}
//请假申请添加
export function leave_add(payload = {}) {
    return service.post('/api/leave/add', payload)
}

//请假申请删除
export function leave_delete(payload = {}) {
    return service.post('/api/leave/delete', payload)
}

//加班申请查询
export function work_list(payload = {}) {
    return service.get('/api/work/list', { params: payload })
}
//加班申请添加
export function work_add(payload = {}) {
    return service.post('/api/work/add', payload)
}

//加班申请删除
export function work_delete(payload = {}) {
    return service.post('/api/work/delete', payload)
}
